package com.springcloud.sc.ucpv5.service.impl;

import com.springcloud.sc.ucp.v5.api.entity.UcpConversationRecord;
import com.springcloud.sc.ucpv5.mapper.UcpConversationRecordMapper;
import com.springcloud.sc.ucpv5.service.UcpConversationRecordService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author zhl
 * @since 2019-06-11
 */
@Slf4j
@Service
@AllArgsConstructor
public class UcpConversationRecordServiceImpl extends ServiceImpl<UcpConversationRecordMapper, UcpConversationRecord> implements UcpConversationRecordService {

    @Autowired
    private UcpConversationRecordMapper ucpConversationRecordMapper;

    @Override
    public List<UcpConversationRecord> queryListByJson( Map<String, Object> params ) {
/*        Map map = new HashMap();
        String number = params.get("number")!=null ? params.get("number").toString() : null;
        String startTime = params.get("startTime")!=null ? params.get("startTime").toString() : null;
        String endTime = params.get("endTime")!=null ? params.get("endTime").toString() : null;

        map.put("number",number);
        map.put("startTime",startTime);
        map.put("endTime",endTime);*/

        return ucpConversationRecordMapper.queryListByMap(params);
    }
}
